﻿using System;

namespace Narwhunderful.Aphelia.Framework.Net
{

    public class NarsockSendEventArgs : EventArgs
    {

        int _totalBytes = 0;
        public int TotalBytes
        {
            get
            {
                return _totalBytes;
            }
            set
            {
                _totalBytes = value;
            }
        }

        int _bytesSent = 0;
        public int BytesSent
        {
            get
            {
                return _bytesSent;
            }
            set
            {
                _bytesSent = value;
            }
        }

        public double Percent
        {
            get
            {
                return (_bytesSent / _totalBytes) * 100;
            }
        }

        public NarsockSendEventArgs(int bytesTotal, int bytesSent)
            : base()
        {
            _totalBytes = bytesTotal;
            _bytesSent = bytesSent;
        }

    }
}
